﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<TestWeb.Models.ViewModel>" %>
<ul class="select">
	<li>
		<a href="<%= Url.Action("SelectLoaiTinTuc", "Admin") %>"><b>LoaiTinTuc</b></a>
	</li>
</ul>
<div class="nav-divider">&nbsp;</div>
<ul class="select-cate">
	<li>
		<a href="#" class="menu-items-inside"><b>TinTuc</b></a>
		<div class="account-content">
			<div class="account-drop-inner">
		 <% for (int i = 0; i < Model.AllOfLoaiTinTucs.Count; i++)
			{
                var item = Model.AllOfLoaiTinTucs[i];
                if (i < Model.AllOfLoaiTinTucs.Count - 1)
				{%>
				<div>
                    <a href="<%= Url.Action("SelectTinTucByLoaiTinTuc", "Admin", new { IDLoaiTinTuc = item.ID }) %>" style="height: 18px; line-height: 16px;">
                        <%= item.TenLoaiTinTuc %>
                    </a>
					<div class="clear">&nbsp;</div>
					<div class="acc-line">&nbsp;</div>
				</div>
				<% }
				else
				{ %>
				<div>
					<a href="<%= Url.Action("SelectTinTucByLoaiTinTuc", "Admin", new { IDLoaiTinTuc = item.ID }) %>" style="height: 18px; line-height: 16px;"><%= item.TenLoaiTinTuc%></a>
				</div>
			 <% } %>
		<% } %>
			</div>
		</div>
	</li>
</ul>
<div class="nav-divider">&nbsp;</div>
<ul class="select">
	<li>
		<a href="<%= Url.Action("SelectNguoiDung", "Admin", new { Role = "SuperAdmin" } ) %>"><b>NguoiDung</b></a>
	</li>
</ul>
<div class="clear"></div>
